package com.work.mapper;

import com.work.domain.UserLoginlog;
import com.work.domain.UserLoginlogExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserLoginlogMapper {
    int countByExample(UserLoginlogExample example);

    int deleteByExample(UserLoginlogExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserLoginlog record);

    int insertSelective(UserLoginlog record);

    List<UserLoginlog> selectByExample(UserLoginlogExample example);

    UserLoginlog selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserLoginlog record, @Param("example") UserLoginlogExample example);

    int updateByExample(@Param("record") UserLoginlog record, @Param("example") UserLoginlogExample example);

    int updateByPrimaryKeySelective(UserLoginlog record);

    int updateByPrimaryKey(UserLoginlog record);

    //查询管理员用户上次登陆信息
	UserLoginlog findLoginInfo(@Param("username")String username);
    //添加首次登陆用户日志
	int addLoginInfo(UserLoginlog userLog);
    //查询所有的登陆日志列表
	List<UserLoginlog> findAllLoginLogInfo();
    //删除登陆日志信息
	Integer deleteLoginLogById(int id);
    //根据条件查询用户信息
	List<UserLoginlog> findUserLogListByConditions(@Param("usernamelog")String usernamelog, @Param("userrolelog")String userrolelog, @Param("loginiplog")String loginiplog,@Param("logintimelog")String logintimelog);
}